<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SPANA: Menu Preferences</title>
<style type="text/css"> <!-- @import url(1_.css);   --> </style>
<link disabled rel="stylesheet" type="text/css" href="1_.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#008000" vlink="#008000" alink="#008000">
<table cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td align="center" valign="top"><a name="Top"></a>
    &nbsp;<a href="S_0_Main.htm"><img src="images/Spana.gif" width="30" height="30" border="0" alt="Spana"></a>&nbsp;</td>
    <td align="left" valign="middle"><font size="-1"><a href="S_0_Main.htm">SPANA</a></font></td>
  </tr>
</table>

<h3>Spana: Menu Preferences</h3>
<p>
  <ul type="disc">
  <li><a href="#Gen">General options</a></li>
  <li><a href="#Diagr">Diagram windows</a></li>
  <li><a href="#Calcs">Calculation options</a></li>
  <li><a href="#Show">Show program output and errors</a></li>
  </ul>
</p>

<p>Note: all user preferences are saved in the
<nobr>&#147;<a href="1_Install_Uninstall.htm#INI">ini&#148;-file</a></nobr>
<nobr><tt>Spana.ini</tt></nobr>.</p>

<a name="Gen"></a>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td><p><hr><!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> </p>
</td><td width="20" align="right">
<a href="S_0_Main.htm">
<img src="images/Back.gif" alt="back" title="back" height="13" width="16" border="0"></a>
</td></tr></table>

<h4>&#147;Preferences / <nobr>General options&#148;:</nobr></h4>

<table border="0" cellpadding="0" cellspacing="0" style="margin-top:10pt">
    <tr valign="top"><td>&nbsp;</td><td>
    <img src="images/Reset_button.gif" alt="Reset" title="Reset" height="37" width="37" border="0">
                                                       </td><td><tt>&nbsp;</tt></td>
    <td>Press this button to reset all preferences and program options to default
    values. This resets also plot-window options, calculation options, etc.</td>
    </tr>
</table>
<ul type="square">
<li><b>Program level:</b> &#147;<u>normal</u>&#148; level is adequate for most users.
  Under &#147;<u>advanced</u>&#148; level additional options and diagram types
  may be selected.</li>
<li><b>Path to SED &amp; PREDOM:</b> this is the folder where the
  <a href="SP_0_Main.htm">programs that make the calculations</a> are located.
  This is found out automatically, but it is possible to select another
  location if needed by clicking on the folder name.</li>
<li><b>Program used to create new data files:</b> The <nobr><a href="DB_0_Main.htm">Database</a> program
  is automatically selected,</nobr> but it is possible
  to select another program (or location) by clicking on the name.</li>
<li><a name="Editor"></a>
  <b>Text Editor:</b> Selected data files may be sent to an external text editor.
	By default this is Notepad on Windows systems. Click on the name to select another editor.</li>
<li><a name="Gen_Adv"></a><b>Advanced-level options:</b>
<ul type="disc">
<li><b>Debugging:</b>
	writes information to the output message window about what
	the program is doing. The message window is not visible when the program
	starts, but it may be activated from the menu &#147;Preferences&#148;
	in the main window, and it is automatically displayed if an
	error occurs.</li>
<li><b>Associate file extensions:</b>
  (only shown on Windows systems) by selecting these options you
	can load data files and display plot files by double-clicking
	on the file names in Windows'	File Explorer.</li>
</ul></li>
</ul>

<a name="Diagr"></a>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td><hr><!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</td><td width="20" align="right">
<a href="#Top"><img src="images/Upp.gif" alt="top" title="top" height="15" width="15" border="0"></a>
</td></tr></table>

<h4>&#147;Preferences / <nobr>Diagram windows&#148;</nobr></h4>

<ul style="margin-top:10pt">
<li><b>Screen display</b>
<ul  type="disc">
<li><b>Keep diagram's aspect ratio:</b> if checked, diagrams will be displayed in the correct x/y ratio,
  adding white space to the top or to the right if the window does not have the same
  width/height ratio. If unchecked, it will strech the diagram to fit the window:
<table border="0" cellpadding="0" cellspacing="0" align="center">
    <tr valign="center"><td>&nbsp;</td><td><b>Keep aspect ratio:</b></td><td><tt>&nbsp;</tt></td>
    <td><b>Strech to fit the window:</b></td>
    </tr>
    <tr valign="top"><td>&nbsp;</td><td>
    <img src="images/Diagr1.gif" alt="Keep aspect ratio" title="Keep aspect ratio" height="170" width="142" border="0">
                                                       </td><td><tt>&nbsp;</tt></td>
    <td>
    <img src="images/Diagr2.gif" alt="Fit to window" title="Fit to window" height="170" width="142" border="0">
    </td>
    </tr>
</table></li>

<li><a name="Diagr_CSize"></a>
<b>Constant size:</b> if unchecked, the diagram is streched to fit the window;
if checked, the diagram is painted on a <nobr>21&times;15</nobr> cm 
&#147;page&#148;.
<table border="0" cellpadding="0" cellspacing="0" align="center">
    <tr valign="center"><td>&nbsp;</td><td><b>Constant size:</b></td><td><tt>&nbsp;</tt></td>
    <td><b>Strech to fit the window:</b></td>
    </tr>
    <tr valign="top"><td>&nbsp;</td><td>
    <img src="images/Diagr3.gif" alt="Constant size" title="Constant size" height="170" width="142" border="0">
                                                       </td><td><tt>&nbsp;</tt></td>
    <td>
    <img src="images/Diagr4.gif" alt="Fit to window" title="Fit to window" height="170" width="142" border="0">
    </td>
    </tr></table>
</li>
</ul>
<li><a name="Fonts"></a>
<b>Fonts:</b> It is possible to select serif (Times Roman), sans-serif (Helvetica)
or mono-spaced (Courier), change the size, etc.
Selecting &#147;none&#148; will produce line-drafted texts:
<table border="0" cellpadding="0" cellspacing="0" align="center">
  <tr><td>&nbsp;</td><td>
    <table border="1" cellpadding="5" cellspacing="1">
      <tr><td><b>Font: None</b><br>
      <img src="images/Label_Line_draft.gif" alt="Font: None" title="Font: None" height="32" width="250" border="0">
      </td></tr>
      <tr><td><b>Font: Serif</b><br>
      <img src="images/Label_Font.gif" alt="Font: Serif" title="Font: Serif" height="30" width="218" border="0">
      </td></tr>
      </table>
  </td></tr></table>
</li>
<li><a name="Colours"></a>
<b>Colours:</b> in fraction and logarithmic diagrams a colour is assigned to
each chemical species. It is possible to change the background and each of
the colours by clicking on them with the mouse. The &#147;reset&#148; button will change
back all clours to their default values.</li>

<li><b>Printing:</b> these parameters affect the printout from the diagram windows.</li>
</ul>

<a name="Calcs"></a>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td><hr><!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</td><td width="20" align="right">
<a href="#Top"><img src="images/Upp.gif" alt="top" title="top" height="15" width="15" border="0"></a>
</td></tr></table>

<h4>&#147;Preferences / <nobr>Calculation options&#148;</nobr></h4>

<p>Parameters to control <b><a href="SP_SED.htm">SED</a></b> and
  <b><a href="SP_PREDOM.htm">Predom</a>:</b></p>

<ul  type="square">
<li><b>Debugging:</b>
<ul>
 <li><b>Keep windows open after calculations:</b>
  useful to detect causes for errors, as
	output from the calculation programs may then be seen in their
	corresponding	message panel-tab.</li>
 <li><b>Write messages in SED &amp; Predom:</b>
  will write verbose information to the output message
	panel-tab of SED or Predom about the program's performance.</li>
 <li><b>Debugging in HaltaFall:</b>   will write
   verbose information to the output message panel-tab of SED or Predom
	 about the HaltaFall calculations.</li>
</ul>
</li>
<li><b>Max. tolerance in HaltaFall:</b>
is the maximum <i>relative</i> tolerance when solving the mass-balance
equation for the outer-loop chemical component. Inner loops have smaller tolerances.
If the total concentration of a component is zero, then an absolute tolerance is used:
<nobr><tt>tol</tt> &#215; 10<sup>&#8722;6</sup>.</nobr>
For very large or complex systems, with many chemical components, you might
have to increase this value.
</li>
<li><b>Fraction diagrams: threshold for curves:</b>
is the cut-off value for displaying curves in a fraction diagram. The deffault is 3%.
Lower the threshold to show minor species:
<table border="0" cellpadding="0" cellspacing="0" align="center">
    <tr valign="center"><td><b>Default (3% cut-off):</b></td>
    <td><b>Threshold at 0.1%:</b></td>
    </tr>
    <tr valign="top"><td>
    <img src="images/Diagr5.gif" alt="default threshold: 3%" title="default threshold: 3%" height="180" width="175" border="1">
                                                       </td>
    <td>
    <img src="images/Diagr6.gif" alt="0.1% threshold" title="0.1% threshold" height="180" width="175" border="1">
    </td>
    </tr>
    <tr valign="center"><td></td>
    <td align="center">(minor species shown) </td>
    </tr>
</table>
</li>
<li>
<a name="Table"></a>
<b>Table output in SED:</b> output files can be generated by SED with
the curve-values in the plots (see <a href="S_Making_Diagrams.htm#Table_Output">making diagrams</a>).
These are plain text files that will get names
like SED000, SED001, etc. You can use these files to insert the tabulated
values into a spread-sheet (such as Excel), or you can plot the data with
some other plotting program. You may here change the format of these text files,
and their name extension. 
</li>
</ul>

<a name="Show"></a>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td><hr><!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</td><td width="20" align="right">
<a href="#Top"><img src="images/Upp.gif" alt="top" title="top" height="15" width="15" border="0"></a>
</td></tr></table>

<h4>&#147;Preferences / <nobr>Show messages and errors&#148;</nobr></h4>

<p>The output message window, which is not visible when
	the program starts, may be activated or hidden with this menu.
	The message window is also automatically displayed if an
	error occurs.</p>

<p style="text-align:right; line-height:0; margin-top:0; margin-bottom:0">
<a href="#Top"><img src="images/Upp.gif" alt="top" title="top" height="15" width="15" border="0"></a>
</p>
</body>
</html>